#[phase(plugin, link)] extern crate log;
#[phase(plugin, link)] extern crate cargo;
-use std::collections::TreeSet;
+use std::collections::BTreeSet;
use std::os;
use std::io;
use std::io::fs::{mod, PathExtensions};
/// List all runnable commands. find_command should always succeed
/// if given one of returned command.
-fn list_commands() -> TreeSet<String> {
+fn list_commands() -> BTreeSet<String> {
let command_prefix = "cargo-";
- let mut commands = TreeSet::new();
+ let mut commands = BTreeSet::new();
for dir in list_command_directory().iter() {
let entries = match fs::readdir(dir) {
Ok(entries) => entries,
-use std::collections::{HashMap, TreeMap};
+use std::collections::{HashMap, BTreeMap};
use regex::Regex;
use serialize::{Encodable, Encoder, Decodable, Decoder};
metadata: Option<Metadata>,
}
-pub type Metadata = TreeMap<String, String>;
+pub type Metadata = BTreeMap<String, String>;
impl EncodableResolve {
pub fn to_resolve(&self, default: &SourceId) -> CargoResult<Resolve> {